// 导入
import request from '@/utils/request'

// 分页查询
export const getPage = (params) => {
  return request({
    url: '/tb/attendance/rule/list',
    method: 'GET',
    params
  })
}
//查看统计页面

export const getTjList = (params) => {
  return request({
    url: '/tb/work/record/statistics',
    method: 'GET',
    params
  })
}
//查看记录列表
export const getJLlist = (params) => {
  return request({
    url: '/tb/work/record/list',
    method: 'GET',
    params
  })
}
export const getPeopleList = (params) => {
  return request({
    url: '/sys/user/list',
    method: 'GET',
    params
  })
}

// 查询全部
export const all = () => {
  return request({
    url: '/outdoor/all',
    method: 'GET'
  })
}
// 新增
export const add = (data) => {
  return request({
    url: '/tb/attendance/rule/add',
    method: 'POST',
    data
  })
}

// 修改
export const update = (data) => {
  return request({
    url: '/tb/attendance/rule/update',
    method: 'POST',
    data
  })
}
// 删除
export const del = (data) => {
  return request({
    url: '/tb/attendance/rule/deletes',
    method: 'POST',
    data
  })
}
// 批量删除
export const delBatch = (data) => {
  return request({
    url: '/outdoor/delBatch',
    method: 'POST',
    data
  })
}
